package com.example.demo.entity;

import lombok.Data;

@Data
public class blog {
    private int id;
    private String type;//类型
    private String title;//标题
    private String user;//博主邮箱
    private String time;//发表时间
    private int browse;//访问
    private int comment;//评论
    private int fabulous;//赞
    private int collection;//收藏
    private users users;//博主详细信息

    @Override
    public String toString() {
        return "{\"blog\":{"
                + "\"id\":"
                + id
                + ",\"type\":\""
                + type + '\"'
                + ",\"title\":\""
                + title + '\"'
                + ",\"user\":\""
                + user + '\"'
                + ",\"time\":\""
                + time + '\"'
                + ",\"browse\":"
                + browse
                + ",\"comment\":"
                + comment
                + ",\"fabulous\":"
                + fabulous
                + ",\"collection\":"
                + collection
                + ",\"users\":"
                + users
                + "}}";

    }
}
